<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
    <link th:href="@{static/css/main.css}" rel="stylesheet" />
</head>

<body>
    <h1 th:text="${hello}">Hello, Spring Boot!</h1>
    <table>
        <tr>
            <th>ID</th>
            <th>书名</th>
        </tr>
        <tr th:each="book : ${list}">
            <td th:text="${book.id}">0</td>
            <td th:text="${book.name}">zhansan</td>
        </tr>
    </table>

    <select>
        <option th:each="book:${list}" th:value="${book.id}" th:text="${book.name}">我是默认值</option>
    </select>

</body>

</html>